package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@TableName("berths")
@Builder
public class Berth {
    private Integer id;
    private Date deletedAt;
    private String number;
    private Integer elderId;
    @TableField(exist = false)
    private String elderName;
    private Integer nursingHomeId;
    @TableField(exist = false)
    private String nursingHome;

    @Tolerate
    Berth() {
    }
}
